using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Product
/// </summary>
public class Product:Item
{
    #region fields 
    int id;
    ProductCategory category;
    string name;
    PetCategory typeOfPet;
    OrderDetails orderDetails;
    string unit;
    string size;  
    #endregion


    #region constructors
    public Product()
    {
        id = 0;
       category = new ProductCategory();
       typeOfPet = new PetCategory();
       orderDetails = new OrderDetails();
        unit = "";
        size = "";
        TypeID = 0;
    }
    #endregion

    #region properties

    public int ID
    {
        get { return id; }
        set { id = value; }
    }
    public ProductCategory Category
    {
        get { return category; }
        set { category = value; }
    }
    public PetCategory ForCategoryOfPet
    {
        get { return typeOfPet; }
        set { typeOfPet = value; }
    }


    public OrderDetails OrderDetails
    {
        get { return orderDetails; }
        set { orderDetails = value; }
    }

    public string Name
    {
        get { return name; }
        set { name = value; }
    }
    public string Unit
    {
        get { return unit; }
        set { unit = value; }
    }
    public string Size
    {
        get { return size; }
        set { size = value; }
    }

    #endregion

    #region methods
    public override bool Equals(object obj)
    {
        Product proc = obj as Product;
        return this.id == proc.id;
    }
    #endregion
}
